package com.yijia.work5.question4;

public class Question4Bean {

    private double radius;

    public Question4Bean() {
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    /**
     * 计算面积
     * @param radius
     * @return
     */
    public double area(double radius){
        return 3.14*radius*radius;
    }

    /**
     * 计算周长
     * @param radius
     * @return
     */
    public double perimeter(double radius){
        return 2*3.14*radius;
    }
}
